#define _CRT_SECURE_NO_WARNINGS 1
#include"p_queue.h"
void testqueue1()
{
	int arr[] = { 1,2,3,4,5,6,7 };
	vector<int> v1(arr, arr + sizeof(arr) / sizeof(arr[0]));
	my_p_queue::priority_queue<int> pq(v1.begin(), v1.end());
	while (!pq.empty())
	{
		cout << pq.top() << endl;
		pq.pop();
	}
	my_p_queue::priority_queue<int, vector<int>, my_p_queue::Greater<int>> pq2(v1.begin(), v1.end());
	while (!pq2.empty())
	{
		cout << pq2.top() << endl;
		pq2.pop();
	}
}
void testqueue2()
{
	my_p_queue::priority_queue<int> pq;
	pq.push(1);
	pq.push(2);
	pq.push(3);
	pq.push(4);
	pq.push(5);
	pq.push(6);
	while (!pq.empty())
	{
		cout << pq.top() << endl;
		pq.pop();
	}

}
int main()
{
	testqueue2();
	return 0;
}